import {
  appearDom_id_prefix,
  disappearDom_id_prefix,
} from '../DataDefine/sourceData';
import type { typ_appear_Direct } from '../Types';

const appearEl_dataManaTag = 'appearEl_dataMana';

export class appearEl_dataMana {
  get [Symbol.toStringTag]() {
    return appearEl_dataManaTag;
  }

  constructor(elt: HTMLElement, direct: typ_appear_Direct) {
    this.targetEl = elt;
    this.direct = direct;
    this.appearEl_anima_cla = appearDom_id_prefix + elt.id;
    this.disappearEl_anima_cla = disappearDom_id_prefix + elt.id;
  }

  /**
   * 当前 元素
   */
  targetEl;

  /**
   * 消失 方位
   */
  direct;

  /**
   * 显示元素 的动画 class
   */
  appearEl_anima_cla;

  /**
   * 消失元素 的动画 class
   */
  disappearEl_anima_cla;
}
